package com.sunk.springboot.bolg.springbootblog.service.impl;

import com.sunk.springboot.bolg.springbootblog.pojo.Article;
import com.sunk.springboot.bolg.springbootblog.repository.ArticleRepository;
import com.sunk.springboot.bolg.springbootblog.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleRepository articleRepository;
    @Override
    public Page<Article> listUser(Pageable pageable) {
        return articleRepository.findAll(pageable);
    }
}
